<template>
  <div>
   
     <el-image v-bind="$attrs" v-on="$listeners" :src="fieldValue" :preview-src-list="[fieldValue]" :style="$attrs.styles">
      <div slot="placeholder" class="image-slot">
        加载中<span class="dot">...</span>
      </div>
    </el-image>
  </div>
</template>

<script>
  export default {
    props: {
      value: {
        type: [String,Number]
      }
    },
    computed: {
      fieldValue: {
        get() {
          console.log(this.$attrs,'--------------')
          return this.value
        },
        set(val) {
          this.$emit('input', val)
        }
      }
    }
  }
</script>


